package com.example.demo1.mapper;

import com.example.demo1.entity.BaRoleFunction;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaRoleFunctionMapper {
    int deleteByPrimaryKey(Integer furoId);

    int insert(BaRoleFunction record);

    int insertSelective(BaRoleFunction record);

    BaRoleFunction selectByPrimaryKey(Integer furoId);

    int updateByPrimaryKeySelective(BaRoleFunction record);

    int updateByPrimaryKey(BaRoleFunction record);

    List<Integer> selectFunctionIdsByRoleId(Integer roleId);

    int deleteByRoleId(Integer roleId);

    // 验证该功能是否被角色绑定
    List<BaRoleFunction> functionUsedByRoles(Integer functionId);
}